﻿<Window x:Class="VSEncoder.Options"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             Height="310" Width="500" ShowInTaskbar="False" WindowStyle="None" ResizeMode="NoResize" BorderThickness="1" Background="#FFECF2EC" MouseDown="WindowMouseDown" WindowStartupLocation="CenterOwner" Foreground="Black" BorderBrush="#FF2DEBD0">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="5" />
            <ColumnDefinition Width="200"/>
            <ColumnDefinition Width="5" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="5" />
            <ColumnDefinition Width="100" />
            <ColumnDefinition Width="5" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="5" />
            <RowDefinition Height="35" />
            <RowDefinition Height="5" />
            <RowDefinition Height="30"/>
            <RowDefinition Height="5" />
            <RowDefinition Height="25"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="5" />
            <RowDefinition Height="30"/>
            <RowDefinition Height="5" />
            <RowDefinition Height="30"/>
            <RowDefinition Height="5" />
        </Grid.RowDefinitions>
        
        <Grid Grid.Column="1" Grid.ColumnSpan="5" Grid.Row="1" HorizontalAlignment="Center" TextBlock.FontSize="18" TextBlock.FontStyle="Italic">

            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="110"/>
                <ColumnDefinition Width="2"/>
                <ColumnDefinition Width="110"/>
                <ColumnDefinition Width="2"/>
                <ColumnDefinition Width="210"/>
            </Grid.ColumnDefinitions>
            
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition Height="1" />
                <RowDefinition Height="3" />
            </Grid.RowDefinitions>
            
            <Button x:Name="globalConfigBtn" Grid.Row="0" Grid.Column="0" Content="Global" Click="GlobalConfigBtnClick" Background="LightGray"/>
            <Button x:Name="solutionConfigBtn" Grid.Row="0" Grid.Column="2" Content="Solution" Click="SolutionConfigBtnClick" Background="LightGray"/>
            <ComboBox x:Name="projectsList" Grid.Row="0" SelectedValuePath="FilePath" DisplayMemberPath="Name" Grid.Column="4" BorderThickness="3" BorderBrush="Red" SelectionChanged="ProjectsListSelectionChanged" ItemsSource="{Binding Projects}" SelectedIndex="0"/>


            <Rectangle x:Name="globalConfigRect" Grid.Row="2" Grid.Column="0" Fill="Green" Visibility="Hidden"/>
            <Rectangle x:Name="solutionConfigRect" Grid.Row="2" Grid.Column="2" Fill="Green" Visibility="Hidden"/>
            <Rectangle x:Name="projectsRect" Grid.Row="2" Grid.Column="4" Fill="Green" Visibility="Hidden"/>


        </Grid>

        <TextBlock Grid.Column="1" Grid.Row="3" Text="Extensions:"  TextBlock.FontSize="16" VerticalAlignment="Bottom"/>

        <TextBox x:Name="addExtBox" Grid.Column="3" Grid.Row="5" Background="#FFDCEBDC" TextBlock.FontSize="16" TextChanged="AddExtBoxTextChanged"/>

        <Button x:Name="addExtBtn" Grid.Column="5" Grid.Row="5" Content="Add" Click="AddExtBtnClick"/>

        <ListBox x:Name="extList" Grid.Column="1" Grid.Row="5" Grid.RowSpan="7" Background="#FFDCEBDC" TextBlock.FontSize="16" ItemsSource="{Binding Extensions, Mode=OneWay}" KeyUp="ExtListKeyUp" SelectionMode="Multiple"/>
        
        <Button x:Name="okBtn" Grid.Column="5" Grid.Row="7" Content="OK" Click="OkBtnClick" IsEnabled="False"/>

        <Button x:Name="applyBtn" Grid.Column="5" Grid.Row="9" Content="Apply" Click="ApplyBtnClick" IsEnabled="False"/>

        <Button x:Name="cancelBtn" Grid.Column="5" Grid.Row="11" Content="Cancel" Click="CancelBtnClick"/>

        <Label x:Name="changedLabel" Grid.Column="5" Grid.Row="6" Content="*" HorizontalAlignment="Center" TextBlock.FontSize="28" VerticalAlignment="Bottom" Foreground="Red" Visibility="Hidden"/>

    </Grid>
</Window>
